package br.ufrgs.inf.engsoft.stp.exchange;

import java.util.List;

import br.ufrgs.inf.engsoft.stp.persistence.AbstractDao;

public class ExchangeDao extends AbstractDao<Exchange, Long> {
	
	public void create(Exchange e) {
		super.create(e);
	}
	
	public List<Exchange> readAll() {
		return super.readAll(Exchange.class);
	}

	public Exchange read(Long id) {
		return (Exchange) super.read(Exchange.class, id);
	}

	public void update(Exchange transientObject) {
		super.update(transientObject);
	}

	public void delete(Exchange persistentObject) {
		super.delete(persistentObject);
	}
	
	public boolean exists(Long id) {
		return (boolean) (super.read(Exchange.class, id) != null);
	}
}
